package com.yueyang.sojourn.server.service.sojourn.project;

import com.yueyang.sojourn.server.model.po.SojournProject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author yemingxing
 * @summary
 * @Copyright (c) 2020, Yueyang Group All Rights Reserved.
 * @since 2020-02-12
 */
@Mapper
interface SojournProjectMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SojournProject record);

    int insertSelective(SojournProject record);

    SojournProject selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SojournProject record);

    int updateByPrimaryKey(SojournProject record);

    //====================================basic mapper===============================================//

    List<SojournProject> findByOperStatus(@Param("keyWord") String keyWord, @Param("operStatusList") List<Integer> operStatusList);

    List<SojournProject> selectByLayoutId(@Param("layoutId") int layoutId, @Param("operStatus") Integer operStatus);

    List<SojournProject> findByIds(List<Long> ids);
}
